<?php
/**
 * @version 0.8.3 2010-10-07
 * @package Joomla
 * @subpackage LeagueResults
 * @copyright (C)  2008, 2009, 2010 Henryk Drozd
 * @license GNU/GPL, see LICENSE.php
 * LeagueResults is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License 2
 * as published by the Free Software Foundation.

 * LeagueResults is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');?>

<div class="componentheading">
<?php echo JText::_( 'DETAILS OF CLUB' ); ?>
</div>

<a href="<? echo $this->backlink; ?>">
	<?php echo JText::_( 'RETURN TO CLUB LIST' ); ?>
</a><br/><br/>
<table class="clubheading">
<tr><td><? echo $this->list[0]->name; ?></td>
<tr><td><? echo $this->list[0]->shortname; ?></td>
<tr><td><? echo $this->list[0]->city; ?></td></tr>
</table>

<table class="clubteamstable" >
<tr>
	<th><?php echo JText::_( 'TEAM NAME' ); ?></th>
	<th><?php echo JText::_( 'TEAM SHORTNAME' ); ?></th>
	<th><?php echo JText::_( 'TEAM DESCRIPTION' ); ?></th>
</tr>

<?php foreach ($this->list as $l): ?>
<tr>
	<td><a href="<?php echo $l->link; ?>">
	<?php if ($this->settings->frontend_images == 1) {?>
			<img src="<?php echo $this->settings->tbadge_folder.$l->tbadge; ?>" />
			<?php }?>
		<?php echo $l->teamname; ?></a></td>
	<td><? echo $l->teamshortname; ?></td>
	<td><? echo $l->teamdescription; ?></td>
</tr>
<?php endforeach; ?>

</table>

